package com.xinqi.modules.sys.textbook.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.PageInfo;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.sys.textbook.dto.req.CloudTextbookInfoQueryDTO;
import com.xinqi.modules.sys.textbook.dto.rsp.CloudTextbookInfoResultDTO;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author linkai
 * @date 2023/5/28
 */
@FeignClient(contextId = "cloudTextbookClient", value = ServiceNameConstants.XQ_SYS)
public interface CloudTextbookInfoClient {

    @GetMapping("/inner/cloud-textbook/page")
    R<PageInfo<CloudTextbookInfoResultDTO>> page(@SpringQueryMap CloudTextbookInfoQueryDTO log);

    @Operation(summary = "云课本基本信息-详情")
    @GetMapping("/inner/cloud-textbook/{id}")
    R<CloudTextbookInfoResultDTO> findById(@PathVariable("id") Long id);

}
